package pack;

import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.JEditorPane;
import java.awt.Color;
import java.awt.SystemColor;
import java.awt.Font;

public class About extends JFrame{
	
	public About(){
		super("Sobre");
		getContentPane().setBackground(Color.WHITE);
	    setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		
		try {  
	     	//UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		        //UIManager.setLookAndFeel("com.sun.java.swing.plaf.metal.MetalLookAndFeel");
		        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		        //setDefaultLookAndFeelDecorated(true);   
		            
	     } catch (IllegalAccessException e) {} 
		    catch (ClassNotFoundException e) {} 
		    catch (InstantiationException e) {} 
		    catch (UnsupportedLookAndFeelException e) { }
		
		setBounds(160, 50, 233, 209);
	    this.setMinimumSize(new Dimension(233,209));
	    getContentPane().setLayout(null);
	    
	    JEditorPane pane_aluno = new JEditorPane();
	    pane_aluno.setFont(new Font("Tahoma", Font.PLAIN, 12));
	    pane_aluno.setBackground(Color.WHITE);
	    pane_aluno.setEditable(false);;
	    pane_aluno.setText("Marcelo Ara\u00FAjo Carvalho\r\nFelipe Pimentel de Aguiar\r\nFelipe Sepulveda Faria");
	    pane_aluno.setBounds(10, 56, 197, 104);
	    getContentPane().add(pane_aluno);
	    
	    JEditorPane pane_titulo = new JEditorPane();
	    pane_titulo.setFont(new Font("Tahoma", Font.BOLD, 14));
	    pane_titulo.setEditable(false);;
	    pane_titulo.setText("Trabalho de Arquitetura\r\n");
	    pane_titulo.setBackground(Color.WHITE);
	    pane_titulo.setBounds(10, 11, 197, 40);
	    getContentPane().add(pane_titulo);
	    setVisible(true);
	}
}
